QuickTime 4 API Documentation

QuickTime 4 Reference

| Previous | Chapter Contents | Chapter Top | Next |

JavaScript Support

QuickTime 4.1 now enables JavaScript control of the QuickTime Plug-in. This works currently only in Netscape browsers. An example of JavaScript usage to play and stop a QuickTime movie is shown in Listing 6, "Sample JavaScript Usage".

The browser will not recognize that the QuickTime Plug-in is JavaScriptable unless the movie's embed statement includes "enablejavascript=true". Technically, Netscape communicates from JavaScript to the plug-in through Java, which requires that Java is running. Rather than require that the browser be running Java to display any embedded movie, the QuickTime Plug-in does not ask the browser to start Java unless the embed statement or movie user data includes this tag.

The following are the QuickTime Plug-in's JavaScript methods. These allow you to query and control QuickTime movies within a browser page.

Movie Commands

Movie Properties

Track Properties

Sprite Track Properties

QuickTime VR Movie Properties

Plug-in Properties

QuickTime Properties


© 2000 Apple Computer, Inc.

| Previous | Chapter Contents | Chapter Top | Next |